import _http from '@/utils/http'

export default {
  quit(params, loading) {
    return _http('post', {
      url: "/ums/mobile/login/quit/app",
      apiName: '退出登录'
    }, params, loading)
  },

  getSmsForModifyPhone(params, loading) {
    return _http('post', {
      url: "/ums/sms/getSmsForModifyPhone/web",
      apiName: '登陆后-修改手机号-获取短信验证码'
    }, params, loading)
  },

  updatePhone(params, loading) {
    return _http('post', {
      url: "/ums/user/updatePhone/web",
      apiName: '修改手机号'
    }, params, loading)
  },

  updatePassword(params, loading) {
    return _http('post', {
      url: "/ums/user/updatePassword/web",
      apiName: '修改密码'
    }, params, loading)
  },

  chargeLog(params, loading) {
    return _http('post', {
      url: '/eas/mobile/pack/chargeLog',
      apiName: '获取订购记录'
    }, params, loading)
  },

  chargeLogDetail(params, loading) {
    return _http('post', {
      url: '/eas/mobile/pack/chargeLogDetail',
      apiName: '获取订购记录详情'
    }, params, loading)
  },
};
